package cn.edu.zafu.bigdata.zqt.shape;

abstract class shape {
    public abstract double area();
    public abstract double perimeter();
    public final void display(){
        System.out.println("该图形类型为："+this.getClass().getSimpleName());
        System.out.println("该图形面积为："+area());
        System.out.println("该图形周长为："+perimeter());
    }
}
